﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CDDocumentExtractor
{
    public partial class MDIParent : Form
    {
        private int childFormNumber = 0;

        public MDIParent()
        {
            InitializeComponent();
        }
        private void listOfFoldersToExtractToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmTOCExtractor frm = new frmTOCExtractor();
            frm.MdiParent = this;
            frm.StartPosition =FormStartPosition.CenterScreen;
            frm.Show();
        }

        private void optionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmOptions opt = new frmOptions();
            opt.StartPosition = FormStartPosition.CenterScreen;
            opt.ShowDialog();
        }

        private void documentsExtractorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDocumentExtractor frm = new frmDocumentExtractor();
            frm.MdiParent = this;
            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.Show();
        }

        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            var frm = new FolderListManager();
            frm.MdiParent = this;
            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.Show();
        }

        private void MDIParent_Load(object sender, EventArgs e)
        {
            if (!Environment.MachineName.ToLower().Trim().Equals("paggarwa"))
            {
                documentsToolStripMenuItem.Visible = false;
            }
        }
    }
}
